import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'

export default defineConfig({
  plugins: [vue()],
  resolve: { // 设置别名
    alias: {
      '@': resolve(__dirname, 'src')
    }
  },
  base: './', // 打包路径
  server: {
    port: 8888,
    open: false,
    cors: true
  }
})
